package com.itheima.service;


import com.itheima.clients.fullBack.FallbackOrder;
import com.itheima.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "order-service",fallback = FallbackOrder.class)
public interface OrderService {

    @GetMapping("/order/findOrderByUserName/{username}")
    public List<Order> findOrderByUserName(@PathVariable("username") String username);
}